#include <stdio.h>

main()
{
   FILE *fp;
   FILE *fp2;
   char buffer[20];

   fp = fopen("arg1.c", "r");
   fp2 = fopen("newtxt", "w");
   fscanf(fp, "%s", buffer);
   printf("Read Buffer: %s\n", buffer );
   fprintf(fp2,"First argumen from first line in arg1.c: %s\n", buffer );
   fclose(fp);
   fclose(fp2);

}
